package com.cy.sys.dao;

import com.cy.sys.pojo.RoleMenus;
import com.cy.sys.pojo.Sysmenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.yaml.snakeyaml.events.Event;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysMenuDao {

    List<Map<Sysmenu,Object>> dofindAll();
    //list允许重复     map中不允许键重复，允许内容重复

    int doDeleteObject(@Param("id") Integer id);

    int doFindById(@Param("id") Integer id);

    int insertObject(RoleMenus roleMenus);

    int doUpdateObject(RoleMenus roleMenus);
}
